package com.whmall.service.crm.provider;

import com.whmall.service.crm.api.SupplierCreditScoreSettingApi;
import com.whmall.service.crm.entity.dto.suppliercreditscore.SupplierCreditScoreSettingReqDTO;
import com.whmall.service.crm.entity.dto.suppliercreditscore.SupplierCreditScoreSettingRspDTO;
import com.whmall.service.crm.module.suppliercreditscore.service.SupplierCreditScoreSettingService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Author：yangdong
 * Date：2020/12/12
 * Description：
 */
@Service(interfaceClass = SupplierCreditScoreSettingApi.class)
public class SupplierCreditScoreSettingProvider implements SupplierCreditScoreSettingApi {

    @Autowired
    private SupplierCreditScoreSettingService settingService;

    @Override
    public List<SupplierCreditScoreSettingRspDTO> list() {
        return settingService.list();
    }

    @Override
    public void create(SupplierCreditScoreSettingReqDTO reqDTO, Long operatorId) {
        settingService.create(reqDTO, operatorId);
    }

    @Override
    public void update(Integer index, SupplierCreditScoreSettingReqDTO reqDTO, Long operatorId) {
        settingService.update(index, reqDTO, operatorId);
    }
}
